package com.shengqi.xinnongren.common.utils;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import com.shengqi.xinnongren.R;

/**
 * Created by LuoYaWei on 2018/7/11.
 */
public class ImageUtils {
    public static void showImage(Context context, String url, ImageView imageView) {
        Glide.with(context).load(url)
                .apply(new RequestOptions().placeholder(R.mipmap.img_place_holder)
                        .error(R.mipmap.img_place_holder)).into(imageView);
    }
}
